#include "TextureNameGL3x.h"

using namespace Renderer;
using namespace Renderer::GL3x;



void Renderer::GL3x::TextureNameGL3x::Destroy()
{
	if (_value != 0)
	{
		glDeleteTextures(1, &_value);
		_value = 0;
	}
}

GLuint Renderer::GL3x::TextureNameGL3x::GetValue() const
{
	return _value;
}

Renderer::GL3x::TextureNameGL3x::~TextureNameGL3x()
{
	Destroy();
}

Renderer::GL3x::TextureNameGL3x::TextureNameGL3x()
{
	glGenTextures(1, &_value);
}
